package com.somedemo.java_design_patterns_demo.abs_factory;

//抽象工厂模式
//为创建一组相关或相互依赖的对象提供了接口，且无需指定具体的类
public class AbsMain {
    public static void main(String[] args) {
        ReadMacFactory readMacFactory = new ReadMacFactory();
        readMacFactory.getColor().getColor();
        readMacFactory.getProduct().getProduct();
        YellowPhoneAAFactory yellowPhoneAAFactory = new YellowPhoneAAFactory();
        yellowPhoneAAFactory.getColor().getColor();
        yellowPhoneAAFactory.getProduct().getProduct();
    }
}
